# -*- coding: utf-8 -*-
UPLOAD_FOLDER = "app/static/file/image/upload"
SAVE_UPLOAD_FOLDER = "static/file/image/upload"
ALLOW_EXTENSIONS = set(['jpg', 'jpeg', 'png'])

SITE_PORT = '9090'
SITE_URL = 'http://127.0.0.1:'+SITE_PORT + "/"     #没地方放，先放这里吧

# sqlalchemy的配置参数
MYSQL_NAME = 'root'
MYSQL_PASSWORD = 'root'
MYSQL_HOST = '127.0.0.1'
MYSQL_POST = '3306'
MYSQL_DBNAME = 'mypic'
# SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{}:{}@{}:{}/{}'.format(MYSQL_NAME, MYSQL_PASSWORD,MYSQL_HOST, MYSQL_POST,MYSQL_DBNAME)
SQLALCHEMY_DATABASE_URI = 'mysql+mysqlconnector://{}:{}@{}:{}/{}'.format(MYSQL_NAME, MYSQL_PASSWORD,MYSQL_HOST, MYSQL_POST,MYSQL_DBNAME)
# 设置sqlalchemy自动跟踪数据库
SQLALCHEMY_TRACK_MODIFICATIONS = True